package com.zretc.auth.dao;



import com.zretc.api.pojo.SysUser;
import org.apache.catalina.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.HashMap;

public interface SysUserMapper {

    SysUser getUserByName(String username);
    SysUser getUserById(Integer id);
    Integer addSingleRecord(SysUser user);
    Integer updateSysUserInfo(SysUser user);
    //获得用户权限列表
    ArrayList<String> getRoleList(Integer userId);

    ArrayList<HashMap<String,Object>> getMenuList(Integer userId);
    Integer isPhoneExisted(String phone);
}